import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView,
    // },
    //用户登录
    {
      path: '/',
      name: 'ShowUser',
      component: () => import('../User/ShowUser.vue'),
    },
    //用户注册
    {
      path: '/AddUser',
      name: 'AddUser',
      component: () => import('../User/AddUser.vue'),
    },
    //Minio上传
    {
      path: '/UploadFile',
      name: 'UploadFile',
      component: () => import('../views/Minio/UploadFile.vue'),
    },
    //菜单（首页）
    {
      path: '/Index',
      name: 'Index',
      component: () => import('../views/Index.vue'),
      children: [
        //角色添加
        {
          path: '/AddRole',
          name: 'AddRole',
          component: () => import('../User/AddRole.vue'),
        },
        //用户角色添加
        {
          path: '/AddUserRole',
          name: 'AddUserRole',
          component: () => import('../User/AddUserRole.vue'),
        },
        //菜单添加
        {
          path: '/AddMenu',
          name: 'AddMenu',
          component: () => import('../User/AddMenu.vue'),
        },
        //菜单列表
        {
          path: '/ShowMenu',
          name: 'ShowMenu',
          component: () => import('../User/ShowMenu.vue'),
        },
        //菜单角色添加
        {
          path: '/AddRoleMenu',
          name: 'AddRoleMenu',
          component: () => import('../User/AddRoleMenu.vue'),
        },
        //产品分类页面AddProduct
        {
          path: '/ProductsSelect',
          name: 'ProductsSelect',
          component: () => import('../views/Products/ProductsSelect.vue'),
        },
        //供应商添加
        {
          path: '/VendorAdd',
          name: 'VendorAdd',
          component: () => import('../views/Procurement/Vendor/VendorAdd.vue'),
        },//供应商显示
        {
          path: '/VendorShow',
          name: 'VendorShow',
          component: () => import('../views/Procurement/Vendor/VendorShow.vue'),
        },
        //供应商修改
        {
          path: '/VendorUpd',
          name: 'VendorUpd',
          component: () => import('../views/Procurement/Vendor/VendorUpd.vue'),
        },
        {
          //仓库添加
          path: '/AddWarehouse',
          name: 'AddWarehouse',
          component: () => import('../views/Warehouse/Warehouses/AddWarehouse.vue'),
        },
        {
          //仓库显示
          path: '/ShowWarehouse',
          name: 'ShowWarehouse',
          component: () => import('../views/Warehouse/Warehouses/ShowWarehouse.vue')
        },
        {
          //仓库修改
          path: '/UpdWarehouse',
          name: 'UpdWarehouse',
          component: () => import('../views/Warehouse/Warehouses/UpdWarehouse.vue')
        },
        {
          //仓库名称反填页面
          path: '/WarehouseFan',
          name: 'WarehouseFan',
          component: () => import('../views/Warehouse/Warehouses/WarehouseFan.vue')
        },
        {//仓库分类显示
          path: '/warehouseType',
          name: 'warehouseType',
          component: () => import('../views/Warehouse/WarehouseType/WarehouseType.vue'),
        },
        {//仓库分类添加
          path: '/warehouseTypeAdd',
          name: 'warehouseTypeAdd',
          component: () => import('../views/Warehouse/WarehouseType/WarehouseTypeAdd.vue'),
        },
        {//仓库分类修改
          path: '/WarehouseTypeUpt',
          name: 'WarehouseTypeUpt',
          component: () => import('../views/Warehouse/WarehouseType/WarehouseTypeUpt.vue'),
        },
        {//到货质检申请添加
          path: '/AddPurApp',
          name: 'AddPurApp',
          component: () => import('../views/Procurement/PurchaseApplication/AddPurApp.vue'),
        },
        {//到货质检申请列表
          path: '/ShowPurApp',
          name: 'ShowPurApp',
          component: () => import('../views/Procurement/PurchaseApplication/ShowPurApp.vue'),
        },
        {//到货质检申请修改
          path: '/UptPurApp',
          name: 'UptPurApp',
          component: () => import('../views/Procurement/PurchaseApplication/UptPurApp.vue'),
        },
        {//到货产品质检添加
          path: '/ProductQualityAdd',
          name: 'ProductQualityAdd',
          component: () => import('../views/Procurement/PurchaseApplication/ProductQualityAdd.vue'),
        },
        //产品添加页面
        {
          path: '/AddProduct',
          name: 'AddProduct',
          component: () => import('../views/Products/AddProduct.vue'),
        },
        //供应商类别
        {
          path: '/VendorType',
          name: 'VendorType',
          component: () => import('../views/Procurement//Vendor/VendorType.vue'),
        },
        {
          //采购合同添加
          path: '/AddPurchaseContracts',
          name: 'AddPurchaseContracts',
          component: () => import('../views/Procurement/PurchaseContracts/AddPurchaseContracts.vue')
        },
        {
          //采购合同显示
          path: '/ShowPurchaseContracts',
          name: 'ShowPurchaseContracts',
          component: () => import('../views/Procurement/PurchaseContracts/ShowPurchaseContracts.vue')
        },
        {
          //采购合同修改
          path: '/UpdPurhaseContracts',
          name: 'UpdPurhaseContracts',
          component: () => import('../views/Procurement/PurchaseContracts/UpdPurhaseContracts.vue')
        },
        //产品显示
        {
          path: '/ShowProduct',
          name: 'ShowProduct',
          component: () => import('../views/Products/ShowProduct.vue'),
        },
        //产品修改
        {
          path: '/UpdProduct',
          name: 'UpdProduct',
          component: () => import('../views/Products/UpdProduct.vue'),
        },
        //采购退货添加
        {
          path: '/AddPurchaseReturns',
          name: 'AddPurchaseReturns',
          component: () => import('../views/Procurement/PurchaseReturns/AddPurchaseReturns.vue'),
        },
        //采购退货显示
        {
          path: '/ListPurchaseReturns',
          name: 'ListPurchaseReturns',
          component: () => import('../views/Procurement/PurchaseReturns/ListPurchaseReturns.vue'),
        },
        //采购退货修改
        {
          path: '/UpdPurchaseReturns',
          name: 'UpdPurchaseReturns',
          component: () => import('../views/Procurement/PurchaseReturns/UpdPurchaseReturns.vue'),
        },
        //采购退货点击供应商名称跳转
        {
          path: '/ListReturnsVendor',
          name: 'ListReturnsVendor',
          component: () => import('../views/Procurement/PurchaseReturns/ListReturnsVendor.vue'),
        },
        {
          path: '/ProcureEnquiryCreate',
          name: 'ProcureEnquiryCreate',
          component: () => import('../views/Procurement/ProcureEnquiryCreate.vue'),
        },
        //人员档案添加
        {
          path: '/AddManpower',
          name: 'AddManpower',
          component: () => import('../views/Personnel/AddManpower.vue'),
        },
        //人员档案显示
        {
          path: '/ListManpower',
          name: 'ListManpower',
          component: () => import('../views/Personnel/ListManpower.vue'),
        },
        //人员档案修改
        {
          path: '/UpdManpower',
          name: 'UpdManpower',
          component: () => import('../views/Personnel/UpdManpower.vue'),
        },
        //采购申请添加
        {
          path: '/AddProcureApply',
          name: 'AddProcureApply',
          component: () => import('../views/Procurement/ProcureApply/AddProcureApply.vue'),
        },
        //物料添加
        {
          path: '/MaterialAdd',
          name: 'MaterialAdd',
          component: () => import('../views/Production/Material/MaterialAdd.vue'),
        },
        //物料显示
        {
          path: '/MaterialShow',
          name: 'MaterialShow',
          component: () => import('../views/Production/Material/MaterialShow.vue'),
        },
        //采购询价显示
        {
          path: '/ProcureEnquirySelect',
          name: 'ProcureEnquirySelect',
          component: () => import('../views/Procurement/PurchaseReturns/ProcureEnquirySelect.vue'),
        },
        //采购询价修改
        {
          path: '/ProcureEnquiryUpdate',
          name: 'ProcureEnquiryUpdate',
          component: () => import('../views/Procurement/PurchaseReturns/ProcureEnquiryUpdate.vue'),
        },
        //采购询价修改
        {
          path: '/ProcureEnquiryCreate',
          name: 'ProcureEnquiryCreate',
          component: () => import('../views/Procurement/ProcureEnquiryCreate.vue'),
        },
        //采购定价
        {
          path: '/PricingCreate',
          name: 'PricingCreate',
          component: () => import('../views/Procurement/PurchaseReturns/PricingCreate.vue'),
        },
        //采购申请列表
        {
          path: '/ShowProcureApply',
          name: 'ShowProcureApply',
          component: () => import('../views/Procurement/ProcureApply/ShowProcureApply.vue'),
        },
        {//到货产品质检添加
          path: '/ShowProductQuality',
          name: 'ShowProductQuality',
          component: () => import('../views/Procurement/PurchaseApplication/ShowProductQuality.vue'),
        },
        {//到货产品质检添加
          path: '/MaterialUpd',
          name: 'MaterialUpd',
          component: () => import('../views/Production/Material/MaterialUpd.vue'),
        },
        {//客户添加
          path: '/ClientCenter',
          name: 'ClientCenter',
          component: () => import('../views/Personnel/Client/ClientCenter.vue'),
        },
        //物料补料添加
        {
          path: '/AddFeeding',
          name: 'AddFeeding',
          component: () => import('../views/Production/Feeding/AddFeeding.vue'),
        },
        //物料补料显示
        {
          path: '/ListFeeding',
          name: 'ListFeeding',
          component: () => import('../views/Production/Feeding/ListFeeding.vue'),
        },
        //采购申请修改页面
        {
          path: '/UpdProcureApply',
          name: 'UpdProcureApply',
          component: () => import('../views/Procurement/ProcureApply/UpdProcureApply.vue'),
        },
        //物料补料修改
        {
          path: '/UpdFeeding',
          name: 'UpdFeeding',
          component: () => import('../views/Production/Feeding/UpdFeeding.vue'),
        },
        //物料补料的查看详情
        {
          path: '/FeedingDetail',
          name: 'FeedingDetail',
          component: () => import('../views/Production/Feeding/FeedingDetail.vue'),
        },
        {
          //预生产计划添加
          path: '/AddPreProduction',
          name: 'AddPreProduction',
          component: () => import('../views/Production/PreProduction/AddPreProduction.vue')
        },
        {
          //预生产计划列表
          path: '/ShowPreProduction',
          name: 'ShowPreProduction',
          component: () => import('../views/Production/PreProduction/ShowPreProduction.vue')
        },
        {
          //预生产计划修改
          path: '/UpdPreProduction',
          name: 'UpdPreProduction',
          component: () => import('../views/Production/PreProduction/UpdPreProduction.vue')
        },
        {
          //客户显示
          path: '/ClientShow',
          name: 'ClientShow',
          component: () => import('../views/Personnel/Client/ClientShow.vue')
        },
        {
          //客户修改
          path: '/ClientUpdate',
          name: 'ClientUpdate',
          component: () => import('../views/Personnel/Client/ClientUpdate.vue')
        },
        {//生产领料添加
          path: '/AddPicking',
          name: 'AddPicking',
          component: () => import('../views/Production/Picking/AddPicking.vue'),
        },
        {//生产领料添加
          path: '/PickingList',
          name: 'PickingList',
          component: () => import('../views/Production/Picking/PickingList.vue'),
        },
        {//生产领料修改
          path: '/UptPicking',
          name: 'UptPicking',
          component: () => import('../views/Production/Picking/UptPicking.vue'),
        },

        {//到货产品质检添加
          path: '/OutboundRequestCreate',
          name: 'OutboundRequestCreate',
          component: () => import('../views/Warehouse/OutboundRequestCreate.vue'),
        },
        {//出库申请显示
          path: '/OutboundRequestSelect',
          name: 'OutboundRequestSelect',
          component: () => import('../views/Warehouse/OutboundRequestSelect.vue'),
        },
        //物料添加退料
        {
          path: '/AddStripping',
          name: 'AddStripping',
          component: () => import('../views/Production/Stripping/AddStripping.vue'),
        },
        {//生产派工添加
          path: '/DisPatchAdd',
          name: 'DisPatchAdd',
          component: () => import('../views/Production/DisPatch/DisPatchAdd.vue')

        },
        //入库申请添加页面
        {
          path: '/AddWarehouseSApp',
          name: 'AddWarehouseSApp',
          component: () => import('../views/Warehouse/WarehouseSApp/AddWarehouseSApp.vue'),
        },
        //入库申请列表页面
        {
          path: '/ShowWarehouseSApp',
          name: 'ShowWarehouseSApp',
          component: () => import('../views/Warehouse/WarehouseSApp/ShowWarehouseSApp.vue'),
        },
        //物料显示退料
        {
          path: '/ListStripping',
          name: 'ListStripping',
          component: () => import('../views/Production/Stripping/ListStripping.vue'),
        },
        //物料修改退料
        {
          path: '/UpdStripping',
          name: 'UpdStripping',
          component: () => import('../views/Production/Stripping/UpdStripping.vue'),
        },
        //物料详情退料
        {
          path: '/DetailStripping',
          name: 'DetailStripping',
          component: () => import('../views/Production/Stripping/DetailStripping.vue'),
        },
        //物料退料的申请入库
        {
          path: '/AddStrippingWarehouse',
          name: 'AddStrippingWarehouse',
          component: () => import('../views/Production/Stripping/AddStrippingWarehouse.vue'),
        },
        //入库申请修改页面
        {
          path: '/UpdWarehouseSApp',
          name: 'UpdWarehouseSApp',
          component: () => import('../views/Warehouse/WarehouseSApp/UpdWarehouseSApp.vue'),
        },
        //出库申请修改页面
        {
          path: '/OutboundRequestUpdate',
          name: 'OutboundRequestUpdate',
          component: () => import('../views/Warehouse/WarehouseType/OutboundRequestUpdate.vue'),
        },
        {
          //添加生产计划页面
          path: '/AddProductionPlan',
          name: 'AddProductionPlan',
          component: () => import('../views/Production/ProductionPlan/AddProductionPlan.vue')
        },
        {
          //销售合同添加
          path: '/SaleContractAdd',
          name: 'SaleContractAdd',
          component: () => import('../views/Finance/SaleContract/SaleContractAdd.vue')
        },
        {
          //销售合同列表
          path: '/SaleContractShow',
          name: 'SaleContractShow',
          component: () => import('../views/Finance/SaleContract/SaleContractShow.vue')
        },
        {//生产计划列表页面
          path: '/ShowProductionPlan',
          name: 'ShowProductionPlan',
          component: () => import('../views/Production/ProductionPlan/ShowProductionPlan.vue')
        },
        {
          //修改生产计划页面
          path: '/UpdProductionPlan',
          name: 'UpdProductionPlan',
          component: () => import('../views/Production/ProductionPlan/UpdProductionPlan.vue')
        },
        //确认入库页面
        {
          path: '/ConfirmWarehouseentry',
          name: 'ConfirmWarehouseentry',
          component: () => import('../views/Warehouse/WarehouseSApp/ConfirmWarehouseentry.vue'),
        },
        //确认入库列表页面
        {
          path: '/GetConfirmWarehouseentry',
          name: 'GetConfirmWarehouseentry',
          component: () => import('../views/Warehouse/WarehouseSApp/GetConfirmWarehouseentry.vue'),
        },
        //确认入库页面
        {
          path: '/InventoryDetails',
          name: 'InventoryDetails',
          component: () => import('../views/Warehouse/WarehouseSApp/InventoryDetails.vue'),
        },
        //确认入库详情页面
        {
          path: '/ConfirmWarehouseDetails',
          name: 'ConfirmWarehouseDetails',
          component: () => import('../views/Warehouse/WarehouseSApp/ConfirmWarehouseDetails.vue'),
        },
        {//生产订单添加
          path: '/AddProOrder',
          name: 'AddProOrder',
          component: () => import('../views/Production/ProduceOrder/AddProOrder.vue'),
        },
        {//生产订单列表
          path: '/ProOrderList',
          name: 'ProOrderList',
          component: () => import('../views/Production/ProduceOrder/ProOrderList.vue'),
        },
        {//生产订单列表
          path: '/OutboundRequestOkCreate',
          name: 'OutboundRequestOkCreate',
          component: () => import('../views/Warehouse/WarehouseType/OutboundRequestOkCreate.vue'),
        },
        {//出库查看详情
          path: '/OutboundRequestOkLook',
          name: 'OutboundRequestOkLook',
          component: () => import('../views/Warehouse/WarehouseType/OutboundRequestOkLook.vue'),
        },
        //销售退货显示
        {
          path: '/ListSalesReturn',
          name: 'ListSalesReturn',
          component: () => import('../views/Finance/SalesReturn/ListSalesReturn.vue'),
        },
        //销售应退款显示
        {
          path: '/ListSalesShouldRefund',
          name: 'ListSalesShouldRefund',
          component: () => import('../views/Finance/SalesShouldRefund/ListSalesShouldRefund.vue'),
        },
        //销售应退款(直接退款)
        {
          path: '/SalesDirectDebit',
          name: 'SalesDirectDebit',
          component: () => import('../views/Finance/SalesShouldRefund/SalesDirectDebit.vue'),
        },
        //销售实退列表
        {
          path: '/ListActualRefund',
          name: 'ListActualRefund',
          component: () => import('../views/Finance/ActualRefund/ListActualRefund.vue'),
        },
        {
          path: '/SaleContractUpd',
          name: 'SaleContractUpd',
          component: () => import('../views/Finance/SaleContract/SaleContractUpd.vue')
        },
        {
          path: '/DisPatchShow',
          name: 'DisPatchShow',
          component: () => import('../views/Production/DisPatch/DisPatchShow.vue')
        },
        {
          path: '/DisPatchUpd',
          name: 'DisPatchUpd',
          component: () => import('../views/Production/DisPatch/DisPatchUpd.vue')
        },
        //应退采购款列表
        {
          path: '/GetPurchaseRefund',
          name: 'GetPurchaseRefund',
          component: () => import('../views/Procurement/PurchaseRefund/GetPurchaseRefund.vue'),
        },
        {//生产订单列表
          path: '/UptProOrder',
          name: 'UptProOrder',
          component: () => import('../views/Production/ProduceOrder/UptProOrder.vue'),
        },
        {//添加发货单
          path: '/AddShip',
          name: 'AddShip',
          component: () => import('../views/Warehouse/ShipRequest/AddShip.vue'),
        },
        {//添加发货单
          path: '/ShowShipList',
          name: 'ShowShipList',
          component: () => import('../views/Warehouse/ShipRequest/ShowShipList.vue'),
        },
        {//添加发货单
          path: '/UptShip',
          name: 'UptShip',
          component: () => import('../views/Warehouse/ShipRequest/UptShip.vue'),
        },
        {//添加确认发货单
          path: '/AddDeliveryConfirmation',
          name: 'AddDeliveryConfirmation',
          component: () => import('../views/Warehouse/ShipRequest/AddDeliveryConfirmation.vue'),
        },
        {//确认发货单列表
          path: '/GetDeliveryConfirmation',
          name: 'GetDeliveryConfirmation',
          component: () => import('../views/Warehouse/ShipRequest/GetDeliveryConfirmation.vue'),
        },
        //实退采购款列表
        {
          path: '/ActualRefundPurchase',
          name: 'ActualRefundPurchase',
          component: () => import('../views/Procurement/PurchaseRefund/ActualRefundPurchase.vue'),
        },
        //应退采购款列表
        {
          path: '/MessageSelect',
          name: 'MessageSelect',
          component: () => import('../views/Products/MessageSelect.vue'),
        },
        //生产派工质检
        {
          path: '/SFQICreate',
          name: 'SFQICreate',
          component: () => import('../views/Production/SFQI/SFQICreate.vue'),
        },
        {
          //仓库调拨申请列表
          path: '/ShowRequestTransfers',
          name: 'ShowRequestTransfers',
          component: () => import('../views/Warehouse/RequestTransfer/ShowRequestTransfers.vue')
        },
        {
          //仓库调拨申请添加
          path: '/AddRequestTransfers',
          name: 'AddRequestTransfers',
          component: () => import('../views/Warehouse/RequestTransfer/AddRequestTransfers.vue')
        },
        {
          //仓库调拨申请修改
          path: '/UpdRequestTransfers',
          name: 'UpdRequestTransfers',
          component: () => import('../views/Warehouse/RequestTransfer/UpdRequestTransfers.vue')
        },
        {
          //仓库调拨申请详情
          path: '/XqRequestTransfers',
          name: 'XqRequestTransfers',
          component: () => import('../views/Warehouse/RequestTransfer/XqRequestTransfers.vue')
        },
        {
          //仓库调拨添加
          path: '/AddAllocate',
          name: 'AddAllocate',
          component: () => import('../views/Warehouse/Allocate/AddAllocate.vue')
        },
        {
          //仓库调拨显示
          path: '/ShowAllocate',
          name: 'ShowAllocate',
          component: () => import('../views/Warehouse/Allocate/ShowAllocate.vue')
        },
        {
          //仓库调拨修改
          path: '/UpdAllocate',
          name: 'UpdAllocate',
          component: () => import('../views/Warehouse/Allocate/UpdAllocate.vue')
        },
        //应收列表
        {
          path: '/AccountList',
          name: 'AccountList',
          component: () => import('../views/Finance/Account/AccountList.vue'),
        },
        //应收列表(直接退款)
        {
          path: '/DirectRefund',
          name: 'DirectRefund',
          component: () => import('../views/Finance/Account/DirectRefund.vue'),
        },
        //生产派工质检显示
        {
          path: '/SFQISelect',
          name: 'SFQISelect',
          component: () => import('../views/Production/SFQI/SFQISelect.vue'),
        },
        //生产派工质检修改
        {
          path: '/SFQIUpdate',
          name: 'SFQIUpdate',
          component: () => import('../views/Production/SFQI/SFQIUpdate.vue'),
        },
        //图表显示
        {
          path: '/Translation',
          name: 'Translation',
          component: () => import('../views/Translation.vue'),
        },
        //生产废料添加
        {
          path: '/AddScraps',
          name: 'AddScraps',
          component: () => import('../views/Production/Scraps/AddScraps.vue'),
        },
        //生产废料显示
        {
          path: '/ListScraps',
          name: 'ListScraps',
          component: () => import('../views/Production/Scraps/ListScraps.vue'),
        },
         //生产废料修改
         {
          path: '/UpdScraps',
          name: 'UpdScraps',
          component: () => import('../views/Production/Scraps/UpdScraps.vue'),
        },
        {
          path: '/XqWarehouse',
          name: 'XqWarehouse',
          component: () => import('../views/Warehouse/Allocate/XqWarehouse.vue')
        }
      ]
    },
    // {
    //   path: '/about',
    //   name: 'about',
    //   component: () => import('../views/AboutView.vue'),
    // },
  ],
})

export default router
